package com.icinfo.wanandroid.core.bean;

/**
 * Author: 胡高建
 * Comment: //TODO
 * Date: 2019-07-25 09:11
 */
public class BaseResponse<T> {
    public static final int SUCCESS=0;
    public static final int FALL=1;

    /**
     * 0:成功，1：失败
     */
    private int errorCode;
    private String errorMsg;
    private T data;

    public static int getSUCCESS() {
        return SUCCESS;
    }

    public static int getFALL() {
        return FALL;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg == null ? "" : errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
